package com.hanserwei.han_picture.controller;

import com.hanserwei.han_picture.domain.common.ApiResponse;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/test")
@Tag(name = "HealthCheck")
public class MainController {
    @Operation(summary = "测试接口")
    @GetMapping("health")
    public ApiResponse<String> health() {
        return ApiResponse.success("Successfully, My Brother!");
    }
}